﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Test.Domain.Entities;
using Test.Service.Abstracts.ApplicationFeature.Dtos;

namespace Test.Service.ApplicationFeature.MapperConfig
{
    public class ApplicationFeatureMapperProfile : Profile
    {
        public ApplicationFeatureMapperProfile()
        {
            CreateMap<EAMApplicationEntity, ApplicationListOutput>();
            CreateMap<ApplicationCreateUpdateInput, EAMApplicationEntity>()
                .ForMember(e => e.TenantId, opt => opt.Ignore())
                .ForMember(e => e.Id, opt => opt.Ignore());
        }
    }
}
